<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="/js/axios.min.js"></script>
<script src="/js/util.js"></script>
<script>
    window.onload = function (){
        findAll()
    }
    function findAll(){
        axios.get("/send/findBySend",null).then(e => {
            var info = e.data;
            console.log(info)
            var str = "";
            for (var i=0;i<info.length;i++){
                str += `<tr><td>${info[i].id}</td><td>${info[i].accept}</td><td>${info[i].phone}</td>
                        <td>${info[i].sumPrice}</td></tr>`
            }
            console.log(str)
            $('orderData').innerHTML = str;
        })
    }
</script>
<body>
    <h2>送货操作</h2>
    <table cellspacing="0" border="1" width="60%">
        <thead>
            <tr><th>订单号</th><th>收货人</th><th>收货人电话</th><th>订单总价</th><th>结账</th></tr>
        </thead>
        <tbody id="orderData"></tbody>
    </table>
</body>
</html>